# -----------------------------------------------------------------------------------------------------------
# Copyright (c) 2025 Huawei Technologies Co., Ltd.
# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
# CANN Open Software License Agreement Version 2.0 (the "License").
# Please refer to the License for details. You may not use this file except in compliance with the License.
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE in the root of the software repository for the full text of the License.
# -----------------------------------------------------------------------------------------------------------
set(src_list_pub
    ${CMAKE_CURRENT_SOURCE_DIR}/aligned_all_gather_double_ring.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_halving_doubling.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_mesh_atomic.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_mesh_direct.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_mesh.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_recursive_hd.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_ring_concurrent_direct.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_ring_direct.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_ring.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_slim_ring.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_mesh_mix.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_graph_pipeline.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_nhr.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_nhr_v1.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_pipeline.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_unified_march.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_nb.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_ahc.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_ahc_broke.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_hd_stage.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_hccs_sio.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_v_pipeline.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/all_gather_v_graph_pipeline.cc
)

target_sources(hccl_alg PRIVATE
    ${src_list_pub}
)